interface CaseStepI {
    id: number;
    order: number;
    stepName: string;
    expected: string;
    subSteps: CaseStepI[];
    parent: number;

}

export interface CaseI {
    id: number;
    name: string;
    description: string;
    steps: CaseStepI[];
    section: SectionI;
    priority: number;
    preCondition: string;
    created_at: Date;
    updated_at: Date;

}

export interface CaseSearchI {
    name: string;
    description: string;
    section: SectionI;
    priority: number;
    created_at: Date;
    updated_at: Date;
}

export interface OtherDataI {
    page: number,   // 当前页码
    count: number,  // 总页数
    pageSize: number // 每页条数
}

// 测试用例所属模块
export interface SectionI {
    id: number;
    name: string;
    sub_section: SectionI[];
    parent_id: number;
}

export class InitSectionList {
    list: SectionI[] = []
}

export class InitCasesList {
    list: CaseI[] = []
    caseSearchData: CaseSearchI = {
        name: '',
        description: '',
        section: {},
        priority: 0,
        created_at: new Date(),
        updated_at: new Date()
    }
    otherData: OtherDataI = {
        page: 0,
        count: 0,
        pageSize: 10
    }
}


